<script setup>
defineProps({
    control: Object,
    model: Object,
})
</script>

<template>
    <van-field :label="control.props.label">
        <template #input>
            <van-rate
                :disabled="true"
                v-model="model[control.id]"
                :count="control.props.max"
                :allow-half="control.props.allowHalf"
            />
        </template>
    </van-field>
</template>
